home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / VPOJAVA.DLL / SOURCE / IFCAPP < prev    next >
Text File  |  1998-12-10  |  1KB  |  37 lines

  1. // IFCApp.java
  2.  
  3. import netscape_beta.application.*;
  4. import netscape_beta.util.*;
  5.  
  6. /** In this example we create several user interface elements and place
  7.   * them on the background view. We set ourselves as the target of these
  8.   * elements so that as the user interacts with them we receive the
  9.   * corresponding commands.
  10.   */
  11. public class IFCApp extends Application implements Target {
  12.     /** This method gets called to initialize an application. We'll take
  13.       * this opportunity to set up the View hierarchy.
  14.       */
  15.     public IFCApp() {
  16.         super();
  17.     }
  18.  
  19.     public void init() {
  20.         super.init();
  21.  
  22.         //{{INIT_CONTROLS
  23.         //}}
  24.     }
  25.  
  26.     /** This is the sole method of the Target interface. Since java doesn't
  27.       * have a way to do callbacks, this ugly little bit of code needs to
  28.       * exist. The convention we recommend is to simply invoke the method
  29.       * with the same name as the command.
  30.       */
  31.     public void performCommand(String command, Object arg) {
  32.     }
  33.  
  34.     //{{DECLARE_CONTROLS
  35.     //}}
  36. }
  37.